package com.lzx.adx.report.enums;

/**
 * 创智小米和wifi映射关系
 */
public enum TtWifiEventTypeEnums {
    REGISTER_APP("register","1"),
    LOGIN_APP("login","5"),

    ;


    TtWifiEventTypeEnums(String pCode, String wifiCode) {
        this.pCode = pCode;
        this.wifiCode = wifiCode;
    }

    public String getpCode() {
        return pCode;
    }

    public void setpCode(String pCode) {
        this.pCode = pCode;
    }

    public String getWifiCode() {
        return wifiCode;
    }

    public void setWifiCode(String wifiCode) {
        this.wifiCode = wifiCode;
    }

    private String pCode;

    private String wifiCode;



    public static String getWifiCode(String pCode) {
        for (TtWifiEventTypeEnums value : TtWifiEventTypeEnums.values()) {
            if (value.pCode.equals(pCode)) {
                return value.wifiCode;
            }
        }
        return null;
    }


}
